package top.ddandang.blog.mapper;

import top.ddandang.blog.model.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author D
 * @since 2020-06-23
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 获取用户的数量
     * @return 用户的数量
     */
    @Select("SELECT COUNT(id) FROM user")
    int getUserAmount();
}
